import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './assets/index';
import Toasted from 'vue-toasted';
import { showErrorToast, showSuccessToast, clearToast } from '@/utils/toast';
Vue.use(Toasted, {
  position: 'bottom-center', // 位置
  duration: 3000, // 持续时间
  theme: 'bubble', // 主题样式
  singleton: true // 单例模式
});
Vue.prototype.showErrorToast = showErrorToast;
Vue.prototype.showSuccessToast = showSuccessToast;
Vue.prototype.clearToast = clearToast;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app');
